package banking;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Text {

    public static void main(String[] args)
    {
        //实例化账户
        Account zpf = new Account(500) ;

        System.out.println("创建账户： "+zpf.getBalance( ) +"元") ;
        System.out.println("取款 ："+(zpf.getBalance( ) -zpf.withdraw(200) ));
        double x=zpf.getBalance( );
        System.out.println("存款："+(zpf.deposit(50)-x)) ;
        System.out.println("取款："+(zpf.getBalance( ) -zpf.withdraw(100) ));
        System.out.println("账户余额 ："+zpf.getBalance()) ;

        System.out.println("*********************************************");


    }

}